package com.longyiqun.cm.controller.home;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

@Controller
public class IndexControllerImpl implements IndexController {

    @Override
    @RequestMapping("/home")
    public String home(Model model, @RequestParam(value="moduleId", required=false, defaultValue="") String moduleId) {

        return "ApiTest/homepage";
    }

    @Override
    @RequestMapping("/download")
    public String download(Model model, @RequestParam(value="moduleId", required=false, defaultValue="") String moduleId) {
        return "ApiTest/download";
    }

    @Override
    @RequestMapping("/home/timeline")
    public String timeline(Model model, String moduleId){
        return "timeline";
    }

}
